﻿using System;
using System.Windows;
using SverigesRadio.SverigesRadioApp.Business;
using SverigesRadio.SverigesRadioApp.Business.Model;

namespace Infrastructure
{
    public class DataContext : IDataContext
    {
        public Visibility DarkThemeVisibility
        {
            get
            {
                return (Visibility) Application.Current.Resources["PhoneDarkThemeVisibility"];
            }
        }

        public IServiceCaller<ProgramCategories> GetProgramCategoriesServiceCaller()
        {
            return new SverigesRadioServiceCaller<ProgramCategories>();
        }

        public IServiceCaller<CategoryPrograms> GetProgramsServiceCaller()
        {
            return new SverigesRadioServiceCaller<CategoryPrograms>();
        }

        public IServiceCaller<Channels> GetChannelServiceCaller()
        {
            return new SverigesRadioServiceCaller<Channels>();
        }

        public IServiceCaller<BroadcastInfo> GetBroadcastInfoServiceCaller()
        {
            return new SverigesRadioServiceCaller<BroadcastInfo>();
        }

    }
}
